package com.touchstone.cloudpacs.controller;

import com.touchstone.cloudpacs.common.utils.request.PageRequest;
import com.touchstone.cloudpacs.common.utils.result.ResultVO;
//import com.touchstone.cloudpacs.common.utils.system.Server;
import com.touchstone.cloudpacs.request.query.LogPageQuery;
import com.touchstone.cloudpacs.service.IOperateLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description : 操作日志控制层
 * @Author : hunter
 * @Date: 2019-07-11 21:15
 * @Version: 1.0
 **/
@RestController
@RequestMapping("/log")
@Api(description = "操作日志", tags = "操作日志")
public class OperateLogController {

    @Autowired
    private IOperateLogService logService;

    @PostMapping("/page")
    @ApiOperation(value = "分页查询操作日志", notes = "分页查询操作日志数据")
    public ResultVO page(@RequestBody PageRequest<LogPageQuery> pageRequest) {
        return ResultVO.usePageInfo(logService.selectByPage(pageRequest));
    }

}
